import request from '@/utils/request'

export function getAction(url, params) {
  return request({
    url: url,
    method: 'get',
    params: params
  })
}

export function postAction(url, params) {
  return request({
    url: url,
    method: 'post',
    data: params
  })
}

export function putAction(url, params) {
  return request({
    url: url,
    method: 'put',
    data: params
  })
}

export function deleteAction(url, params) {
  return request({
    url: url,
    method: 'delete'
  })
}
